POV-Ray : Newsgroups : povray.general : rotation around arbitary axis? : Re: rotation around arbitary axis? Server Time
6 Aug 2024 19:29:13 EDT (-0400)
  Re: rotation around arbitary axis?  
From: Bill DeWitt
Date: 13 Feb 2002 01:30:08
Message: <3c6a07f0$1@news.povray.org>
"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3c698ea4$1@news.povray.org>,
>  "Bill DeWitt" <bde### [at] cflrrcom> wrote:
>
> >     vaxis_rotate???
>
> vaxis_rotate() is a function that operates on vectors. There are a few
> macros available that will generate a transform for rotating objects
> around any axis (do a search on the scene file groups here, or look in
> the povray.org link pages), and one is included in the POV 3.5 standard
> includes.

    Maybe I misunderstood the question.

#declare Sphere1 = x;
#declare Sphere2 = vaxis_rotate(Sphere1, 1, 360*clock);

   sphere { Sphere1, 0.4 pigment { rgb x } } // the object
   sphere { Sphere2, 0.5 pigment { rgb y } } // the rotated object
   cylinder { 0, 1, 0.25 pigment { rgb z } } // the arbitrary axis


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.